package com.hmkj.admin.controller.suggestion;

import com.hmkj.admin.controller.BaseController;
import com.hmkj.admin.controller.GenericController;
import com.hmkj.common.entity.dtgrid.DtGrid;
import com.hmkj.core.model.suggestion.SuggestionModel;
import com.hmkj.core.service.suggestion.SuggestionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping(BaseController.BASE_URI)
public class SuggestionJsonController extends GenericController<Integer,SuggestionModel>{
    @Resource
    private SuggestionService suggestionService;
    /**
     * 问题反馈
     *
     * @param dtGridPager
     * @return
     */
    @ResponseBody
    @RequestMapping("suggestion/json/list")
    public DtGrid userListJson(String dtGridPager) throws Exception {
        return suggestionService.getDtGridList(dtGridPager, SuggestionModel.class);
    }
}
